package com.itcast.common.exception.pojo;

import lombok.Getter;
import org.joda.time.DateTime;

@Getter
public class ExceptionResult {
    private Integer status; //异常状态码
    private String message; //异常消息
    private String timestamp;//异常发生时间

    public ExceptionResult(CsException e){
        this.status=e.getStatus();
        this.message=e.getMessage();
        this.timestamp= DateTime.now().toString("yyyy-MM-dd HH:mm:ss");
    }
}
